﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace UniversityPortal
{
    [ServiceContract]
    public interface IScheduleService
    {
        [OperationContract]
        IEnumerable<Lesson> GetTodaySchedule(int groupNumber);

        [OperationContract]
        IEnumerable<Lesson> GetActualSchedule(int groupNumber);

    }


    [DataContract]
    public class Lesson
    {
        DateTime begin;
        DateTime end;
        string name;
        string type;
        string auditory;
        string professor;

        [DataMember]
        public DateTime Begin
        {
            get { return begin; }
            set { begin = value; }
        }

        [DataMember]
        public DateTime End
        {
            get { return end; }
            set { end = value; }
        }

        [DataMember]
        public string Name
        {
            get { return name; }
            set { name = value; }
        }

        [DataMember]
        public string Type
        {
            get { return type; }
            set { type = value; }
        }
        [DataMember]
        public string Auditory
        {
            get { return auditory; }
            set { auditory = value; }
        }
        [DataMember]
        public string Professor
        {
            get { return professor; }
            set { professor = value; }
        }
    }
}
